home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Qumana 3.0.1 / Qumana-3.0.1-en-qumana.exe / Qumana.exe / com / qumana / data / BlogPost.hbm.xml < prev    next >
Extensible Markup Language  |  2006-11-27  |  2KB  |  112 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
  3. <hibernate-mapping package="com.qumana.data">
  4.     <class
  5.         name="BlogPost"
  6.         table="BLOGPOSTS">
  7.  
  8.         <id
  9.             name="id"
  10.             column="POST_ID"
  11.             type="long">
  12.             <generator class="native"/>
  13.         </id>
  14.         
  15.         <many-to-one
  16.             name="blog"
  17.             column="BLOG_ID"
  18.             class="Blog"
  19.             not-null="true"/>
  20.             
  21.         <property
  22.             name="allowComments"
  23.             column="ALLOW_COMMENTS"
  24.             type="boolean"/>
  25.         
  26.         <property
  27.             name="allowTrackbacks"
  28.             column="ALLOW_TRACKBACKS"
  29.             type="boolean"/>
  30.  
  31.         <property
  32.             name="author"
  33.             column="AUTHOR"
  34.             type="string"/>
  35.             
  36.         <set
  37.             name="categories"
  38.             table="POST_CATEGORIES">
  39.             <key column="POST_ID"/>
  40.             <many-to-many
  41.                 class="Category"
  42.                 column="CATEGORY_ID"/>
  43.         </set>
  44.             
  45.         <property
  46.             name="content"
  47.             column="CONTENT"
  48.             type="string"/>
  49.             
  50.         <property
  51.             name="convertBreaks"
  52.             column="CONVERT_BREAKS"
  53.             type="string"/>
  54.             
  55.         <property
  56.             name="dateCreated"
  57.             column="DATE_CREATED"
  58.             type="timestamp"/>
  59.             
  60.         <property
  61.             name="datePublished"
  62.             column="DATE_PUBLISHED"
  63.             type="timestamp"/>
  64.         
  65.         <property
  66.             name="excerpt"
  67.             column="EXCERPT"
  68.             type="string"/>
  69.             
  70.         <property
  71.             name="keywords"
  72.             column="KEYWORDS"
  73.             type="string"/>
  74.             
  75.         <property
  76.             name="link"
  77.             column="LINK"
  78.             type="string"/>
  79.             
  80.         <property
  81.             name="postId"
  82.             column="ID"
  83.             type="string"/>
  84.             
  85.         <property
  86.             name="status"
  87.             column="STATUS"
  88.             type="integer"/>
  89.             
  90.         <property
  91.             name="posted"
  92.             column="POSTED"
  93.             type="boolean"/>
  94.         
  95.         <property
  96.             name="textMore"
  97.             column="TEXT_MORE"
  98.             type="string"/>
  99.         
  100.         <property
  101.             name="title"
  102.             column="TITLE"
  103.             type="string"/>
  104.             
  105.         <property
  106.             name="trackbackUrls"
  107.             column="TRACKBACK_URLS"
  108.             type="string"/>
  109.             
  110.     </class>
  111. </hibernate-mapping>
  112.